package com.ttn.common.core.entity.studentrecord.converter;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ttn.common.core.entity.studentrecord.StudentRecord;
import com.ttn.common.core.entity.studentrecord.vo.StudentRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper

public interface StudentRecordConverter {
    StudentRecordConverter INSTANCE = Mappers.getMapper(StudentRecordConverter.class);

    StudentRecordVO studentRecord2VO(StudentRecord studentRecord);

    Page<StudentRecordVO> studentRecord2VOPage(IPage<StudentRecord> studentRecordVOIPage);
}
